package com.vanvalt.payhui.modules.pay.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.service.CrudService;
import com.vanvalt.core.utils.SvrUtils;
import com.vanvalt.payhui.modules.pay.dao.BannerDao;
import com.vanvalt.payhui.modules.pay.entity.Banner;

/**
 * @author Xiaoyang
 *
 */
@Service
@Transactional(readOnly = true)
public class BannerService extends CrudService<BannerDao, Banner> {

	@Autowired
	public BannerDao bannerDao;
	
	@Transactional(readOnly = false)
	public void save(Banner banner) {
		
		SvrUtils.save(banner, bannerDao);
	}
}
